﻿using System;
using System.Collections.Generic;
using System.Text;
using ihongma.Common;

namespace ihongma.Web.UI.Page
{
    public partial class ajaxlist : Web.UI.BasePage
    {
        protected int page;         //当前页码
        protected int category_id;  //类别ID
        protected int totalcount;   //OUT数据总数
        protected string tag;
        protected string whe;
        /// <summary>
        /// 重写虚方法,此方法将在Init事件前执行
        /// </summary>
        protected override void ShowPage()
        {
            page = DTRequest.GetQueryInt("page", 1);
            category_id = DTRequest.GetQueryInt("category_id");
            tag = DTRequest.GetQueryString("tag");
            if (tag != "")
            {
                whe = " tag like '%" + tag + "%'";
            }
        }
        protected string pagelisthtml(int pagesize, int page, int totalcount)
        {
            if (tag == "")
            {
                return newget_page_link(pagesize, page, totalcount, "ajax_list", category_id, "__id__");
            }
            else
            {
                return newget_page_link(pagesize, page, totalcount, "ajax_list3", tag, "__id__");
            }
        }
    }
}
